<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
  <title>Description of geo2arideg</title>
  <meta name="keywords" content="geo2arideg">
  <meta name="description" content="GEO2ARIDEG converts geographic angles to arithmetic angles.">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html &copy; 2005 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../../m2html.css">
  <script type="text/javascript">
    if (top.frames.length == 0) { top.location = "../../index.html"; };
  </script>
</head>
<body>
<a name="_top"></a>
<!-- ../menu.html VMT_4.0_dev --><!-- menu.html utils -->
<h1>geo2arideg
</h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="box"><strong>GEO2ARIDEG converts geographic angles to arithmetic angles.</strong></div>

<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="box"><strong>function [ariAng] = geo2arideg(geoAng) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="fragment"><pre class="comment">GEO2ARIDEG converts geographic angles to arithmetic angles.
 geoAng is a scalar, vector, or matrix of geographic angles in
 degrees, i.e., geographic headings (North = 0, with angles
 positive clockwise) ariAng is an output of size(geoAng) with
 angles converted to angles such as those produced with atan()
 or atan2().

 EXAMPLE USAGE
   geoAng = 300
   [ariAng] = mcsADCP.geo2arideg(geoAng)
   ariAng =
 
   150

 Frank L. Engel, USGS

 SEE ALSO: mcsADCP, <a href="ari2geodeg.html" class="code" title="function [geoAng] = ari2geodeg(ariAng)">ari2geodeg</a></pre></div>

<!-- crossreference -->
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
This function calls:
<ul style="list-style-image:url(../../matlabicon.gif)">
</ul>
This function is called by:
<ul style="list-style-image:url(../../matlabicon.gif)">
</ul>
<!-- crossreference -->



<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function [ariAng] = geo2arideg(geoAng)</a>
0002 <span class="comment">%GEO2ARIDEG converts geographic angles to arithmetic angles.</span>
0003 <span class="comment">% geoAng is a scalar, vector, or matrix of geographic angles in</span>
0004 <span class="comment">% degrees, i.e., geographic headings (North = 0, with angles</span>
0005 <span class="comment">% positive clockwise) ariAng is an output of size(geoAng) with</span>
0006 <span class="comment">% angles converted to angles such as those produced with atan()</span>
0007 <span class="comment">% or atan2().</span>
0008 <span class="comment">%</span>
0009 <span class="comment">% EXAMPLE USAGE</span>
0010 <span class="comment">%   geoAng = 300</span>
0011 <span class="comment">%   [ariAng] = mcsADCP.geo2arideg(geoAng)</span>
0012 <span class="comment">%   ariAng =</span>
0013 <span class="comment">%</span>
0014 <span class="comment">%   150</span>
0015 <span class="comment">%</span>
0016 <span class="comment">% Frank L. Engel, USGS</span>
0017 <span class="comment">%</span>
0018 <span class="comment">% SEE ALSO: mcsADCP, ari2geodeg</span>
0019 ariAng = 360 - geoAng + 90;
0020 ariAng(ariAng&gt;360) = ariAng(ariAng&gt;360) - 360;
0021 <span class="keyword">end</span> <span class="comment">% function geo2arideg</span></pre></div>
<hr><address>Generated on Thu 21-Mar-2013 09:32:01 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> &copy; 2005</address>
</body>
</html>